using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._EditingTools._Conflation
{
    /// <summary>
    /// <para>Rubbersheet Features</para>
    /// <para>Modifies input features by spatially adjusting them through rubbersheeting, using the specified rubbersheet links, so they are better aligned with the intended target features.</para>
    /// <para>通过使用指定的橡皮板链接对输入要素进行空间调整来修改输入要素，以便它们更好地与预期目标要素对齐。</para>
    /// </summary>    
    [DisplayName("Rubbersheet Features")]
    public class RubbersheetFeatures : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RubbersheetFeatures()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input features to be adjusted. They can be points, lines, polygons, or annotations.</para>
        /// <para>要调整的输入特征。它们可以是点、线、多边形或注释。</para>
        /// </param>
        /// <param name="_in_link_features">
        /// <para>Input Link Features</para>
        /// <para>The input line features representing regular links for rubbersheeting.</para>
        /// <para>输入线特征表示橡皮板的常规链接。</para>
        /// </param>
        public RubbersheetFeatures(object _in_features, object _in_link_features)
        {
            this._in_features = _in_features;
            this._in_link_features = _in_link_features;
        }
        public override string ToolboxName => "Editing Tools";

        public override string ToolName => "Rubbersheet Features";

        public override string CallName => "edit.RubbersheetFeatures";

        public override List<string> AcceptEnvironments => ["extent", "workspace"];

        public override object[] ParameterInfo => [_in_features, _in_link_features, _in_identity_links, _method.GetGPValue(), _out_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input features to be adjusted. They can be points, lines, polygons, or annotations.</para>
        /// <para>要调整的输入特征。它们可以是点、线、多边形或注释。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Input Link Features</para>
        /// <para>The input line features representing regular links for rubbersheeting.</para>
        /// <para>输入线特征表示橡皮板的常规链接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Link Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_link_features { get; set; }


        /// <summary>
        /// <para>Input Point Features As Identity Links</para>
        /// <para>The input point features representing identity links for rubbersheeting.</para>
        /// <para>表示橡皮板标识链接的输入点要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Point Features As Identity Links")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_identity_links { get; set; } = null;


        /// <summary>
        /// <para>Method</para>
        /// <para><xdoc>
        ///   <para>Specifies the rubbersheeting method to be used to adjust features.</para>
        ///   <bulletList>
        ///     <bullet_item>Linear—This method is slightly faster and produces good results when you have many links spread uniformly over the data you are adjusting. This is the default.</bullet_item><para/>
        ///     <bullet_item>Natural neighbor—This method should be used when you have few links spaced widely apart.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定用于调整特征的橡皮板方法。</para>
        ///   <bulletList>
        ///     <bullet_item>线性 - 此方法速度稍快，并且在将许多链接均匀分布在要调整的数据上时会产生良好的结果。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>自然邻居 - 当间隔较宽的链接很少时，应使用此方法。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Method")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _method_value _method { get; set; } = _method_value._LINEAR;

        public enum _method_value
        {
            /// <summary>
            /// <para>Linear</para>
            /// <para>Linear—This method is slightly faster and produces good results when you have many links spread uniformly over the data you are adjusting. This is the default.</para>
            /// <para>线性 - 此方法速度稍快，并且在将许多链接均匀分布在要调整的数据上时会产生良好的结果。这是默认设置。</para>
            /// </summary>
            [Description("Linear")]
            [GPEnumValue("LINEAR")]
            _LINEAR,

            /// <summary>
            /// <para>Natural neighbor</para>
            /// <para>Natural neighbor—This method should be used when you have few links spaced widely apart.</para>
            /// <para>自然邻居 - 当间隔较宽的链接很少时，应使用此方法。</para>
            /// </summary>
            [Description("Natural neighbor")]
            [GPEnumValue("NATURAL_NEIGHBOR")]
            _NATURAL_NEIGHBOR,

        }

        /// <summary>
        /// <para>Modified Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Modified Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public RubbersheetFeatures SetEnv(object extent = null, object workspace = null)
        {
            base.SetEnv(extent: extent, workspace: workspace);
            return this;
        }

    }

}